// Decompiled by DJ v3.9.9.91 Copyright 2005 Atanas Neshkov  Date: 2009-10-26 21:57:27


// Source File Name:   LineNumber.java

package com.vhly.classfile;

import java.io.DataInputStream;
import java.io.DataOutputStream;
import java.io.IOException;

public class LineNumber {

    private int start_pc;
    private int line_number;

    public LineNumber() {
        start_pc = 0;
        line_number = 0;
    }

    public void read(DataInputStream datainputstream)
            throws IOException {
        start_pc = datainputstream.readUnsignedShort();
        line_number = datainputstream.readUnsignedShort();
    }

    public void write(DataOutputStream dataoutputstream)
            throws IOException {
        dataoutputstream.writeShort(start_pc);
        dataoutputstream.writeShort(line_number);
    }

    public LineNumber(int i, int j) {
        start_pc = 0;
        line_number = j;
    }

    public int getStartPC() {
        return start_pc;
    }

    public int getLineNumber() {
        return line_number;
    }

    public void setStartPC(int i) {
        start_pc = i;
    }

    public void setLineNumber(int i) {
        line_number = i;
    }
}